package com.study.talk.netty.message;

import java.io.Serial;
import java.io.Serializable;

public abstract class TalkMessage implements Serializable {

    @Serial
    private static final long serialVersionUID = 4444888857825673346L;

    protected String dateTime;

    public abstract byte getType();

    public TalkMessage(String dateTime) {
        this.dateTime = dateTime;
    }

    public byte getVersion() {
        return (byte) 1;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public TalkMessage() {
    }
}
